/*
 * Copyright 2016-2036 the original author or authors.
 *
 * COMMERCIAL USE OF THIS SOFTWARE WITHOUT WARRANTY IS NOT ALLOWED.
 * Use is subject to license terms! You can distribute a copy of this software
 * to others for free. This software is a non-profit and open-source project.
 * Any contribution to this project will make it better.
 * All rights reserved! Owned by Stephen Liu.
 *
 */
package com.github.raffle.behavior.observer;

/**
 *
 * @author ste7en.liu@gmail.com
 * @since 1/27/2016
 */
public interface Subject {
	/**
	 * 添加一个观察者
	 * @param observer 观察者
	 */
	void attach(Observer observer);
	/**
	 * 移除一个观察者
	 * @param observer 观察者
	 */
	void detach(Observer observer);
	/**
	 * 通知所有的观察者
	 */
	void inform();
}
